how to take input a matrix using map in python

36

s = 3
a = []
for i in range(s):
    res = list(map(int, input().split(' ')))
    a.append(res)
print(a)

Comments

Submit
0 Comments